//
//  PurumMinigameEnemy.h
//  PurumClothes
//
//  Created by 솔이 박 on 11. 4. 30..
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//


#import "PurumMinigameDefinition.h"

typedef enum tagEnemyType
{
	EnemyType_Red,
	EnemyType_Yellow,
	EnemyType_Blue,
	
} EnemyType;

typedef enum tagEnemyStateType
{
	EnemyStateType_Appear,
	EnemyStateType_Run,
	EnemyStateType_Dead,
	EnemyStateType_Disappear,
	
} EnemyStateType;

@interface PurumMinigameEnemy : NSObject {
	
	EnemyType type;
	EnemyStateType state;
	
	int x, y;
	int velocity;
	
	UIImageView *enemyImage;
}

-(bool) isEnded;

-(void) initializeTimer;
-(void) tick : (NSTimer*)theTimer;

-(void) update;
-(void) move;

-(void) nextState;

-(void) initialize : (UIView*)view ofEnemyType: (EnemyType)enemyType withStartX: (int)startX andStartY: (int)startY;
-(void) finalize;

-(void) buildEnemy : (UIView*)view;

-(void) loadEnemyImage;
-(void) addEnemyImage : (UIView*)view;
-(void) removeEnemyImage;

-(NSString*) getEnemyImagePath;

@end
